package com.mijie.homi.admin.dao.commom;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.mijie.core.IBatisDao;
import com.mijie.core.Paging;
import com.mijie.homi.admin.domain.commom.SensitiveWord;

@Repository
public class SensitiveWordDao extends IBatisDao {

	public int addSensitiveWord(SensitiveWord word){
		return this.insert("addSensitiveWord", word);
	}
	
	public SensitiveWord getSensitiveWordByWord(String word){
		return this.selectOne("getSensitiveWordByWord",word);
	}
	
	public void listSensitiveWord(Paging<SensitiveWord> paging,Map<String,Object> parameter){
		this.selectPage(paging, "listSensitiveWord", parameter);
	}
	
	public void deleteSensitiveWord(String word){
		this.delete("deleteSensitiveWord", word);
	}
	
	public int updateSensitiveWord(SensitiveWord word){
		return this.update("updateSensitiveWord", word);
	}
	
}
